//
//  NRWBuyCarFilterManager.h
//  NRWMall
//
//  Created by 邢毅 on 2018/6/7.
//  Copyright © 2018年 com.anpxd. All rights reserved.
//

#import <Foundation/Foundation.h>

@class NRWBuyCarSortModel, NRWBuyCarPriceModel, NRWBuyCarFilterHeaderModel, NRWBuyCarFilterModel;

typedef NS_ENUM(NSUInteger, NRWBuyCarFilterType) {
    NRWBuyCarFilterTypeMileage,
    NRWBuyCarFilterTypeCarAge
};

@interface NRWBuyCarFilterManager : NSObject

/// 获取排序菜单model
+ (NSArray<NRWBuyCarSortModel *>*)getSortContentModelArray;
/// 获取价格菜单model
+ (NSArray<NRWBuyCarPriceModel *>*)getPriceModelArray;
/// 获取价格slider titleArray
+ (NSArray<NSString *>*)getPriceSliderTitleArray;
/// 获取车辆筛选 header titleArray
+ (NSArray<NRWBuyCarFilterHeaderModel *>*)getBuyCarFilterTitleArray;
/// 获取里程titleArray
+ (NSArray<NSString *>*)getBuyCarMileageTitleArray;
/// 获取车龄titleArray
+ (NSArray<NSString *>*)getBuyCarAgeTitleArray;
/// 获取订阅headerModel
+ (NSArray<NRWBuyCarFilterHeaderModel *> *)getSubscribeTitleArray;

/**
 给model赋值

 @param model 目标model
 @param headerModel headerModel
 @param titleArray 滑块titleArray
 @param first firstIndex
 @param last lastIndex
 @param type 类型
 */
+ (void)setValueForModel:(nonnull NRWBuyCarFilterModel *)model headerModel:(nonnull NRWBuyCarFilterHeaderModel *)headerModel withTitleModel:(nonnull NSArray<NSString *>*)titleArray firstIndex:(NSInteger)first lastIndex:(NSInteger)last type:(NRWBuyCarFilterType)type;


@end
